package com.bjpowernode.other.cas;

public class CounterTest {
    public static void main(String[] args) {
        Counter counter = new Counter();

        for (int i = 0; i < 100 ; i++) {
            new Thread(()->{
                System.out.println(counter.incrementAndGet());
            }).start();
        }
    }
}
